/*
 * sub.h
 *
 *  Created on: 2016-10-24
 *      Author: m
 */

#ifndef SRC_INCLUDE_LIB_SUB_H_
#define SRC_INCLUDE_LIB_SUB_H_

#include "type.h"

extern void print_c(char c);
extern void out_byte(u16 port, u8 value);
extern u8 in_byte(u16 port);
extern void clear_screen2();

extern void disable_irq(int irq_no);
extern void enable_irq(int irq_no);

#define di() asm("cli \n"); //disable interrupt
#define si() asm("sti \n"); //enable interrupt

void reset_sec_reg();
void port_read(u16 port, void* buf, int len);
void port_write(u16 port, void* buf, int len);

#endif /* SRC_INCLUDE_LIB_SUB_H_ */
